package com.qf.shop.auth.feign.api;

import com.qf.shop.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.qf.shop.common.vo.UserVo;


@FeignClient(name = "shop-user",path = "/user")
public interface UserService {

    @PostMapping("/findUser")
    public UserVo findUser(@RequestParam("field") String field, @RequestParam("value") String value);

    @PostMapping("/save")
    R register(UserVo userVo);

    @GetMapping("/queryUser")
    UserVo queryUser(@RequestParam("name") String name);

    @RequestMapping("/update")
    void updateById(UserVo userVo);
}
